//导入模块
import { Test } from "./Test";

//数字类型
let numberValue:number = 1;
//bool类型
let boolValue:boolean = false;
//字符串类型
let stringValue:string = "abc";
//数组类型
let arr1Value:number[] = [1,2];
let arr2Value:Array<Number> = new Array<Number>;
//元组类型
let tupleValue:[string, string];
tupleValue = ['123', '321'];
//枚举类型
enum Color{Red,Black};
let red:Color = Color.Red;
//Unknow类型,可表示任意类型
let unknowValue:unknown;
//这种类型可以任意赋值
unknowValue = 1;
unknowValue = "23";
//Void类型
let voidFunc = ():void => { console.info("void func!") };

let test: Test = new Test("张三", 18);